package com.lee.lease.web.admin.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lee.lease.model.entity.ApartmentInfo;
import com.lee.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.lee.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.lee.lease.web.admin.vo.apartment.ApartmentQueryVo;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.atguigu.lease.model.ApartmentInfo
*/
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {

    IPage<ApartmentItemVo> findPageApartmentItemVo(IPage<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    /**
     * 根据租约id查询公寓信息
     * @param id 租约id
     * @return
     */

    ApartmentInfo selectByAgreementId(Long id);

}




